public class NumerosPrimos {

    public static void main(String[] args) {
        if (args.length < 0 ){
                System.out.println("Uso java: java Principal <genero> <discid>");
        }
        else{
            String st = args[0];
            System.out.println("mostrar st" +st);
            int num = Integer.parseInt(st);
            int i = 0;
            int cont1 = 0;
			int j = 0;
			int[] arr = new int[100];
			int z = 0;
			int a = num;
            while (1<num){
                i = num ;
				cont1 = 0;
                while (1<i){
					if ( num%i == 0){
						cont1++;
						 z = num;
					}
                    i--;
				}
				if (cont1 == 1){
					arr[j] = z;
                	System.out.println("los primos menores a " +  a  + " son :" +arr[j]);
					j++;
            	}
				num--;
		    }
            
        }
    }
    
}
